package com.cl.security.system.entity;

import com.cl.security.base.entity.BaseEntity;
import com.cl.security.base.entity.TreeEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.*;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Table
@Entity
@Getter
@Setter
@SQLDelete(sql = "update menu set deleted=1 where id=?")
@Where(clause = "deleted<>1")
public class Menu extends TreeEntity<Menu> implements Serializable {
    private String path;
    private String redirect;
    private String component;
    private String icon;
    private int type;
}
